package com.crm.service.courseregist;

import com.crm.model.entity.courseregist.CourseConsumeRecord;
import com.crm.model.vo.courseregist.CourseConsumeRecordVO;

import java.util.List;

public interface CourseProductConsumeDbService {


    /**
     * @Description: 添加课程报名消费的产品信息
     * @Param: [regist]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/4/26
     **/
    Boolean insert(CourseConsumeRecord record);


    /**
     * @Description: 批量插入课程产品消费记录
     * @Param: [records]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/6/4
    **/
    Boolean batchInsert(List<CourseConsumeRecord> records);


    /**
     * @Description: 根据报名ID取消报名消费记录
     * @Param: [registId, courseId]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/4/26
     **/
    Boolean deleteConsumeRecordByRegistId(String registId);


    /**
     * @Description: 根据报名人ID列表获取消费记录
     * @Param: [registList]
     * @Return: java.util.List<com.crm.model.entity.courseregist.CourseConsumeRecord>
     * @Author: lixq-f
     * @Date: 2021/6/11
    **/
    List<CourseConsumeRecordVO> queryRecordsByRegistsId(List<String> registList);


    /**
     * @Description: 通过报名ID获取消费记录
     * @Param: [registId]
     * @Return: com.crm.model.entity.courseregist.CourseConsumeRecord
     * @Author: lixq-f
     * @Date: 2021/7/21
    **/
    List<CourseConsumeRecord> getConsumeRecordByRegistId(String registId);


}
